<template>
	<view class="rank">
		<view class="rank-tabs">
			<view :class="tabActive?'':'rank-tabs-active'" @click="tabActive=false">本科榜单</view>
			<view :class="tabActive?'rank-tabs-active':''" @click="tabActive=true">专科榜单</view>
		</view>
		<view class="rank-list">
			<view class="rank-item">
				<image src="../../static/logo.png" mode=""></image>
				<view class="rank-item-title">ESI国际排名</view>
				<view class="rank-item-title1">内地高校综合排名</view>
			</view>
			<view class="rank-item">
				<image src="../../static/logo.png" mode=""></image>
				<view class="rank-item-title">ESI国际排名</view>
				<view class="rank-item-title1">内地高校综合排名</view>
			</view>
			<view class="rank-item">
				<image src="../../static/logo.png" mode=""></image>
				<view class="rank-item-title">ESI国际排名</view>
				<view class="rank-item-title1">内地高校综合排名</view>
			</view>
			<view class="rank-item">
				<image src="../../static/logo.png" mode=""></image>
				<view class="rank-item-title">ESI国际排名</view>
				<view class="rank-item-title1">内地高校综合排名</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabActive: false
			}
		},
		onLoad() {

		},
		methods: {
			goto(name) {
				uni.navigateTo({
					url: name
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.rank {
		padding: 30rpx;
		.rank-tabs {
			border-radius: 7px;
			overflow: hidden;
			display: flex;
			border: 1px solid #1bb675;
			view {
				flex: 1;
				text-align: center;
				line-height: 80rpx;
				color: #1bb675;
			}
			.rank-tabs-active {
				background-color: #1bb675;
				color: #FFFFFF;
			}
		}
		.rank-list {
			margin-top: 40rpx;
			.rank-item {
				display: inline-block;
				width: calc(50% - 16rpx);
				text-align: center;
				background-color: #FFFFFF;
				padding-top: 40rpx;
				padding-bottom: 30rpx;
				margin-bottom: 30rpx;
				image {
					width: 80rpx;
					height: 80rpx;
				}
				.rank-item-title {
					font-weight: bold;
					margin-top: 10rpx;
				}
				.rank-item-title1 {
					font-size: 24rpx;
					color: #999999;
					margin-top: 10rpx;
				}
			}
			.rank-item:nth-child(even) {
				margin-left: 30rpx;
			}
		}
	}
</style>
<style>
	page {
		background-color: #F5F5F5;
	}
</style>
